#include "FileServer.h"

FileServer::FileServer()
{

}
FileServer::~FileServer()
{

}
bool FileServer::LocateResource( const std::string &path, std::string& filename )
{
	if( !Exist(path) )
	{
		return false;
	}

	filename = path;
	return true;
}
bool FileServer::Exist( const std::string& filename )
{
	std::ifstream fip;
	fip.open( filename.data() );
	if( ! fip.good() )
	{
		return false;
	}
	
	fip.close();
	return true;
}